// components/RecommendationTest.tsx
import React, { useEffect } from 'react';
import { View, Text, Button } from 'react-native';
import { getRecommendations } from '../../api/recommendation';

const RecommendationTest = () => {
  const testGetRecommendations = async () => {
    try {
      const response = await getRecommendations({
        device_id: 'your-device-id'
      });
      console.log('Get recommendations response:', response.data);
    } catch (error) {
      console.error('Get recommendations error:', error);
    }
  };

  useEffect(() => {
    testGetRecommendations();
  }, []);

  return (
    <View>
      <Text>Recommendation API Test</Text>
      <Button title="Get Recommendations" onPress={testGetRecommendations} />
    </View>
  );
};

export default RecommendationTest;